<?php

include_once (__ALIPATH__.'/com/alibaba/openapi/client/entity/SDKDomain.class.php');
include_once (__ALIPATH__.'/com/alibaba/openapi/client/entity/ByteArray.class.php');
include_once (__ALIPATH__.'/com/alibaba/product/param/AlibabaChinaBacsevApiQueryModelOfferQualityInfoModel.class.php');

class AlibabaChinaBacsevApiQueryModelIsvQualityAdviceModel extends SDKDomain {

       	
    private $offerId;
    
        /**
    * @return 
    */
        public function getOfferId() {
        return $this->offerId;
    }
    
    /**
     * 设置     
     * @param Long $offerId     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setOfferId( $offerId) {
        $this->offerId = $offerId;
    }
    
        	
    private $offerQualityInfoModels;
    
        /**
    * @return 
    */
        public function getOfferQualityInfoModels() {
        return $this->offerQualityInfoModels;
    }
    
    /**
     * 设置     
     * @param array include @see AlibabaChinaBacsevApiQueryModelOfferQualityInfoModel[] $offerQualityInfoModels     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setOfferQualityInfoModels(AlibabaChinaBacsevApiQueryModelOfferQualityInfoModel $offerQualityInfoModels) {
        $this->offerQualityInfoModels = $offerQualityInfoModels;
    }
    
    	
	private $stdResult;
	
	public function setStdResult($stdResult) {
		$this->stdResult = $stdResult;
					    			    			if (array_key_exists ( "offerId", $this->stdResult )) {
    				$this->offerId = $this->stdResult->{"offerId"};
    			}
    			    		    				    			    			if (array_key_exists ( "offerQualityInfoModels", $this->stdResult )) {
    			$offerQualityInfoModelsResult=$this->stdResult->{"offerQualityInfoModels"};
    				$object = json_decode ( json_encode ( $offerQualityInfoModelsResult ), true );
					$this->offerQualityInfoModels = array ();
					for($i = 0; $i < count ( $object ); $i ++) {
						$arrayobject = new ArrayObject ( $object [$i] );
						$AlibabaChinaBacsevApiQueryModelOfferQualityInfoModelResult=new AlibabaChinaBacsevApiQueryModelOfferQualityInfoModel();
						$AlibabaChinaBacsevApiQueryModelOfferQualityInfoModelResult->setArrayResult($arrayobject );
						$this->offerQualityInfoModels [$i] = $AlibabaChinaBacsevApiQueryModelOfferQualityInfoModelResult;
					}
    			}
    			    		    		}
	
	private $arrayResult;
	public function setArrayResult($arrayResult) {
		$this->arrayResult = $arrayResult;
				    		    			if (array_key_exists ( "offerId", $this->arrayResult )) {
    			$this->offerId = $arrayResult['offerId'];
    			}
    		    	    			    		    		if (array_key_exists ( "offerQualityInfoModels", $this->arrayResult )) {
    		$offerQualityInfoModelsResult=$arrayResult['offerQualityInfoModels'];
    			$this->offerQualityInfoModels = new AlibabaChinaBacsevApiQueryModelOfferQualityInfoModel();
    			$this->offerQualityInfoModels->setStdResult ( $offerQualityInfoModelsResult);
    		}
    		    	    		}
 
   
}
?>